package top.shiyiri.shops.service;

import top.shiyiri.shops.bean.EraHotShopTop10;
import top.shiyiri.shops.dao.EraHotShopTop10Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/24
 */
@Service
public class EraHotShopTop10Service {

    @Autowired
    EraHotShopTop10Dao dao;
    public List<EraHotShopTop10> eraHotSHopTop10ByPage(int page, int size) {

        return dao.eraHotSHopTop10ByPage((page - 1) * size, size);
    }

    public int totalLines() {
        return dao.totalLines();
    }

    public List<EraHotShopTop10> eraHotShopTop10() {
        return dao.eraHotShopTop10();
    }
}
